FPC Server
Purpose
This sample provides an example of console HTTP server and client applications that were written on Free Pascal.
Note: This example doesn't require Lazarus, however it can be opened in Lazarus.
Getting Started
- Build or compile both projects.
- Launch the server.
- Enter two numbers and check results.
Examine the Code
-
Examine how a message and a server classes are created in runtime and how
ROMessage is registered in ROServer.Dispatchers.
-
Examine similar actions (creating of message and channel) in client application.